home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Linux Cubed Series 7: Sunsite
/
Linux Cubed Series 7 - Sunsite Vol 1.iso
/
system
/
shells
/
kiss-0.11
/
kiss-0
/
kiss
/
src
/
command.c
< prev
next >
Wrap
C/C++ Source or Header
|
1995-03-23
|
301b
|
19 lines
#include "kiss.h"
void command (int index)
{
FILE
*f;
register int
i;
if (! (f = popen (orgargv [0], "w")) )
error ("could not restart \"%s\"", orgargv [0]);
for (i = index; i < orgargc; i++)
fprintf (f, "%s ", orgargv [i]);
fputc ('\n', f);
laststatus = pclose (f);
}